﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Text;

public partial class buy : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (this.IsPostBack) return;
    }

    public DataTable getgiohang()
    {
        GioHang gio = (GioHang)Session["GioHang"];
        if (gio != null)
        {
            return gio.Data;
        }
        return null;
    }

    public bool RemoveCartItem(string id)
    {
        GioHang gio = (GioHang)Session["GioHang"];
        if (gio.Exits(id))
        {          
            gio.Remove(id);            
            return true;
        }
        return false;
    }

    protected void btUocTinh_Click(object sender, EventArgs e)
    {
        
    }
}
